<!-- Pic Field -->
@if(isset($indexSlideshow))
    <div class="form-group col-sm-12">
        <img src="{{$indexSlideshow->pic}}" alt="">
    </div>
@endif
<div class="form-group col-sm-12">
    <img src="" alt="">
    {!! Form::label('pic', '图片:') !!}
    {!! Form::file('pic') !!}
</div>
<div class="clearfix"></div>

<!-- Skip Type Field -->
<div class="form-group col-sm-6">
    {!! Form::label('skip_type', '跳转类型:') !!}
    <select name="skip_type">
        <option value="category" {{ isset($indexSlideshow)?($indexSlideshow->skip_type=="category"?'selected':''):'' }}>跳转分类</option>
        <option value="goods" {{ isset($indexSlideshow)?($indexSlideshow->skip_type=="goods"?'selected':''):'' }}>跳转商品</option>
        <option value="article">跳转文章</option>
        <option value="url">跳转URL</option>
    </select>
</div>

<!-- Skip Id Field -->
<div class="form-group col-sm-6">
    {!! Form::label('skip_id', '跳转ID(如果选了分类，商品，文章填写):') !!}
    {!! Form::text('skip_id', null, ['class' => 'form-control']) !!}
</div>

<!-- Json Field -->
<div class="form-group col-sm-6">
    {!! Form::label('skip_url', '跳转地址(如果选了跳转URL填写):') !!}
    {!! Form::text('skip_url', null, ['class' => 'form-control']) !!}
</div>

<!-- Sort Field -->
<div class="form-group col-sm-6">
    {!! Form::label('sort', '排序值:') !!}
    {!! Form::text('sort', null, ['class' => 'form-control']) !!}
</div>

<!-- Submit Field -->
<div class="form-group col-sm-12">
    {!! Form::submit('保存', ['class' => 'btn btn-primary']) !!}
    <a href="{!! route('indexSlideshows.index') !!}" class="btn btn-default">Cancel</a>
</div>
